package com.justgame.project.service.api.dto;

import com.justgame.project.service.api.entity.OnlineUserInfo;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;

@EqualsAndHashCode(callSuper = true)
@Data
public class OnlineUserInfoDTO extends OnlineUserInfo {

    @NotNull
    @Max(2)
    @Min(0)
    private Integer sex;

    @Null
    private String userId;
}
